package winterTest.day08;

public class Cleaner extends Employee{
	private double kpi;
	
	public Cleaner() {
		super("cleaner",0,2000);
	}
	public Cleaner(double kpi) {
		super("cleaner",0,2000);
		this.kpi=kpi;
	}
	
	public double getKpi() {
		return kpi;
	}

	public void setKpi(double kpi) {
		this.kpi = kpi;
	}

	@Override
	public String toString() {
		return "Cleaner [getName()=" + getName() + ", getAge()=" + getAge() + ", getKpi()=" + getKpi()
				+ ", getSalary()=" + getSalary() + "]";
	}
	@Override
	public double getSalary(){
		return  super.getSalary()+1000*kpi;
	}
}
